package group.sicher.core.encrypt;

import group.sicher.core.encrypt.exception.EncryptException;

/**
 * @author Donald
 * @description
 * @date 2019-07-02
 **/
public interface EncryptService {
    /**
     * 加密
     *
     * @param origin
     * @return
     * @throws EncryptException
     */
    String encrypt(String origin) throws EncryptException;

    /**
     * 解密
     *
     * @param cipher
     * @return
     * @throws EncryptException
     */
    String decrypt(String cipher) throws EncryptException;
}
